<template>
  <div class="about">
    {{info}}
     <el-button @click="userInfoFn">userInfo</el-button>
    <el-button @click="power">1</el-button>
    <el-button @click="power1">2</el-button>
    <el-button @click="power2">3</el-button>
  </div>

</template>
<script>
export default {
  name: 'AboutView',
  data(){
    return{
      info:''
    }
  },
  methods:{
    userInfoFn(){
      let headerStr=sessionStorage.getItem("user")
      this.$axios.get("api/boot/userInfo/zy/123456/info",
          {headers:{'token':headerStr}}).then(
          r=>{
                 this.info=r.data
          }
      )
    },
    power(){
      let headerStr1 = sessionStorage.getItem("user")
      this.$axios.get("api/boot/power",
          {headers:{'token':headerStr1}}).then(
          r=>{
            this.info=r.data
          }
      )
    },
    power1(){
      let headerStr2 = sessionStorage.getItem("user")
      this.$axios.get("api/boot/power1",
          {headers:{'token':headerStr2}}).then(
          r=>{
            this.info=r.data
          }
      )
    },
    power2(){
      let headerStr3 = sessionStorage.getItem("user")
      this.$axios.get("api/boot/power2",
          {headers:{'token':headerStr3}}).then(
          r=>{
            this.info=r.data
          }
      )
    },
  }
}
</script>
